package me.zhengjie.kwService;

import com.baomidou.mybatisplus.extension.service.IService;
import me.zhengjie.pojo.entity.ExamStudent;
import me.zhengjie.pojo.export.ExamStudentExport;
import me.zhengjie.pojo.export.ExaminationResultExport;
import me.zhengjie.util.BaseResponse;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author Long
 * @date 2021/6/28 17:31
 */
public interface ExamStudentService extends IService<ExamStudent>{
    /**
     * 查询所有考场考生安排表信息
     * @return
     */
    List<ExamStudent> selectList();

    /**
     * 考场考生信息导出
     * @param response
     * @param examStudents 要导出的考生数据
     */
    BaseResponse export(HttpServletResponse response, List<ExamStudent> examStudents);

    /**
     * 考场考生信息导入
     * @param examStudentExports 考生信息
     */
    void saveImportList(List<ExamStudentExport> examStudentExports,Integer examId);

    /**
     * 考场考生成绩导出
     * @param response 响应
     * @param examStudents 传入的考生信息
     * @return
     */
    BaseResponse exportExaminationResult(HttpServletResponse response, List<ExamStudent> examStudents);

    /**
     * 考生成绩导入
     * @param resultExportList 导入的考生信息
     */
    void saveImportExaminationResult(List<ExaminationResultExport> resultExportList);
}
